package com.eis.admin.mvc.bean.xml;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;


@XmlRootElement(name="connectorConfig")
@XmlType()
public class ConnectorConfigureBean {
	private int bizsysid;
	private String connectorname;
	private int connectorId;
	private List<ConnectorConfigureParaBean> connectorConfigureParaBean = new ArrayList<ConnectorConfigureParaBean>();
	private String thirdDisplay;

	public int getBizsysid() {
		return bizsysid;
	}

	public void setBizsysid(int bizsysid) {
		this.bizsysid = bizsysid;
	}

	@XmlElement(name="configPara")
	public List<ConnectorConfigureParaBean> getConnectorConfigureParaBean() {
		return connectorConfigureParaBean;
	}

	public void setConnectorConfigureParaBean(
			List<ConnectorConfigureParaBean> connectorConfigureParaBean) {
		this.connectorConfigureParaBean = connectorConfigureParaBean;
	}

	public String getConnectorname() {
		return connectorname;
	}

	public void setConnectorname(String connectorname) {
		this.connectorname = connectorname;
	}

	public int getConnectorId() {
		return connectorId;
	}

	public void setConnectorId(int connectorId) {
		this.connectorId = connectorId;
	}

	public String getThirdDisplay() {
		return thirdDisplay;
	}

	public void setThirdDisplay(String thirdDisplay) {
		this.thirdDisplay = thirdDisplay;
	}
	
	public String getListLabel() {
		if (thirdDisplay != null && thirdDisplay.trim().length() > 0) {
			return connectorname + "(" + thirdDisplay + ")";
		} else {
			return connectorname;
		}
	}
}
